package com.pig4cloud.pig.module.api.entity.product;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.pig4cloud.pig.common.core.annotation.Excel;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

/**
 * 购物需要购买的暖心保订单对象 product_order_warm_heart
 *
 * @author ruoyi
 * @date 2022-11-14
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("product_order_warm_heart")
public class ProductOrderWarmHeart implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * $column.columnComment
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    /**
     * 订单id
     */
    private Long orderId;

    /**
     * 下单用户id
     */
    private Integer userId;

	/**
	 *  暖心保投保订单
	 */
	private String warmOrderNo;

    /**
     * 保险人手机号
     */
    @Excel(name = "投保人手机号")
    private String phoneNum;

    /**
     * 保险人姓名
     */
	@Excel(name = "参保人姓名")
    private String realName;

    private String buyerName;

    /**
     * 身份证号
     */
	@Excel(name = "参保人身份证号")
    private String idNo;

    /**
     * 添加时间
     */
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    private String address;

    /**
     * 人工客服缴费图片
     */
    private String payImgUrl;

    /**
     * 购买暖心保的时间
     */
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date buyWarmHeartTime;

    /**
     * 状态 0 - 未交费  1 - 已交费
     */
    private Integer state;

	/**
	 *  是否是团单用户  0 - 不是  1 - 是
	 */
	private Integer isGroup;

	@Excel(name = "投保状态")
	@TableField(exist = false)
	private String stateTxt;

    @TableField(exist = false)
	private String payImgUrlPath;

    @TableField(exist = false)
	private String nickName;

	@TableField(exist = false)
	private String faceUrl;

	@TableField(exist = false)
	private String userNo;

	@TableField(exist = false)
	private String beginDate;

	@TableField(exist = false)
	private String endDate;
}
